package com.qf.advice;

import org.springframework.aop.ThrowsAdvice;

/**
 * @author lixu
 * Exception Throw
 */
public class MyThrowableAdvice implements ThrowsAdvice {

    /**
     * afterThrowing：Spring的源码中 调用异常的通知的时候 方法名已经写死了afterThrowing
     * @param ex
     */
    public void afterThrowing(Exception ex){
        System.out.println("my throws 异常通知辅助功能");
    }

}
